package cn.yj;

import cn.yj.api.InitUploadImportSelector;
import cn.yj.common.EnablePayService;
import cn.yj.common.config.PayAutoConfiguration;
import cn.yj.config.ConcatInfo;
import cn.yj.config.SchoolCBDConfig;
import cn.yj.params.check.EnableCheckMethodParams;
import cn.yj.tools.readconfig.EnableReadConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * <br>
 *
 * @author 永健
 * @since 2020-11-28 20:54
 */
@SpringBootApplication
@MapperScan(basePackages = {"cn.yj.**.mapper", "cn.yj.core.business.mapper"})
@EnableReadConfig(classLoader = App.class)
@EnableCheckMethodParams
@EnableScheduling
@EnableConfigurationProperties(value = {SchoolCBDConfig.class, ConcatInfo.class})
// 如果没有支付商户，application-wxpay.yml中 pay.start=false 关闭支付 application-manghe.yml 关闭盲盒收费
@Import(value = {InitUploadImportSelector.class})
@EnablePayService
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }
}
